package edu.sctu.practice.class02.shilaihong.assign03.text1;

/**
 * Created by admin on 2015/10/28.
 */
public class Main {
    public static void main(String[] args) {
        Circle circle = new Circle("blue",8.0);
        Display.displayGeometricObject(circle);

        Rectangle rectangle = new Rectangle(5.0,6.0,"黑色");
        Display.displayGeometricObject(rectangle);

        System.out.println("圆的面积为：" + circle.area);
        System.out.println("Rectangle的周长为："+rectangle.findPerimeter());
        System.out.println("Rectangle的面积为："+rectangle.findArea());
        System.out.println("面积是否相等："+ Equal.equalArea(circle, rectangle));
    }

}
